package com.dt76.smallloanbackendservice.controller.zjs;

import com.dt76.smallloanbackendservice.service.zjs.PowerService;
import com.dt76.smallloanbackendservice.utils.Page;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;



@Controller
@RequestMapping("/zjs")
public class PowerController {

    @Autowired
    private PowerService powerService;

    @RequestMapping("/qryPagePowerAll")
    @ResponseBody
    public Page qryPageAllPowerUser(@RequestParam("pageIndex") int pageIndex,
                                     @RequestParam("qryTime") int qryTime,
                                    @RequestParam("qryNum") int qryNum,
                                    @RequestParam("qryMoney") int qryMoney,
                                    @RequestParam("qryType") int qryType,
                                  @RequestParam("qryRank") int qryRank,
                                  @RequestParam("qryLebal") int qryLebal
                                    ){
        System.out.println("pageIndex"+pageIndex);
        System.out.println("qryTime:"+qryTime);
        System.out.println("qryNum:"+qryNum);
        System.out.println("qryMoney:"+qryMoney);
        System.out.println("qryType:"+qryType);
        System.out.println("qryLebal:"+qryLebal);
        System.out.println("qryRank:"+qryRank);

        return powerService.qryPageAllPowerUser(pageIndex,qryTime,qryNum,qryMoney,qryType,qryRank,qryLebal); }


}
